package lol.clann.minecraft.exampleplugin;

import com.google.auto.service.AutoService;
import lol.clann.minecraft.springboot.adapter.api.plugin.PluginDefine;

import java.util.HashSet;
import java.util.Set;

/**
 * 定义当前插件的信息
 *
 * @author pyz
 * @date 2019/5/12 12:27 PM
 */
@AutoService(PluginDefine.class)
public class Define implements PluginDefine {
    /**
     * 插件ID,需要唯一
     *
     * @return
     */
    @Override
    public String getId() {
        return "ExamplePlugin";
    }

    /**
     * 插件展示名,不为null就行
     *
     * @return
     */
    @Override
    public String getDisplayName() {
        return "样例插件";
    }

    /**
     * 依赖的minecraft插件(注意不是springboot插件)
     *
     * @return
     */
    @Override
    public Set<String> getPluginDepends() {
        Set<String> depends = new HashSet<>();
        return depends;
    }

    /**
     * 插件的包路径
     *
     * @return
     */
    @Override
    public Set<String> getBasePackages() {
        Set<String> basePackages = new HashSet<>();
        basePackages.add("lol.clann.minecraft.exampleplugin");
        return basePackages;
    }
}
